package com.kuizii.demo.web;

import com.kuizii.base.web.config.Swagger2Config;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties;
import org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;

@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.kuizii.demo.api"})
@SpringBootApplication(exclude = {ErrorMvcAutoConfiguration.class, DataSourceAutoConfiguration.class})
@EnableCaching
@ComponentScan(basePackages = {"com.kuizii"})
@Import(Swagger2Config.class)
@EnableDubbo(scanBasePackages = "com.kuizii.demo.web.controller")
public class DemoWebApiStaterApplication {

    public static void main(String[] args) {

        SpringApplication.run(DemoWebApiStaterApplication.class, args);
        System.out.println("====================================================================");
        System.out.println("====================================================================");
        System.out.println("======>>                                                <<==========");
        System.out.println("======>>                                                <<==========");
        System.out.println("======>>                    服务启动成功                 <<==========");
        System.out.println("======>>                                                <<==========");
        System.out.println("======>>                                                <<==========");
        System.out.println("====================================================================");
        System.out.println("====================================================================");
    }


}
